<?php

namespace Zch\LishangLaravelShop\Extend\Artisan\Providers;

use Illuminate\Support\ServiceProvider;

class ArtisanServiceProvider extends ServiceProvider
{
    protected $lishangCommands = [
        \Zch\LishangLaravelShop\Extend\Artisan\Make\LishangMakeClass::class,
        \Zch\LishangLaravelShop\Extend\Artisan\Make\ModelMakeCommand::class,
        \Zch\LishangLaravelShop\Extend\Artisan\Make\ControllerMakeCommand::class,
        \Zch\LishangLaravelShop\Extend\Artisan\Make\LishangMigrateMakeCommond::class,
        \Zch\LishangLaravelShop\Extend\Artisan\Make\ObsServerMakeCommand::class,
        \Zch\LishangLaravelShop\Extend\Artisan\Make\SeederMakeCommand::class,
    ];

    public function register()
    {
         $this->mergeConfigFrom(__DIR__ . '/Config/artisan.php', 'extend.artisan');
    }

    public function boot()
    {
        $this->commands($this->lishangCommands);
    }
}
